package org.jeecg.modules.quality.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: 不合格处理单
 * @Author: jeecg-boot
 * @Date:   2024-07-10
 * @Version: V1.0
 */
@Data
@TableName("buss_unqualified_form")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="buss_unqualified_form对象", description="不合格处理单")
public class BussUnqualifiedForm implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
	/**单据编号*/
	@Excel(name = "单据编号", width = 15)
    @ApiModelProperty(value = "单据编号")
    private String code;
	/**质检单*/
	@Excel(name = "质检单", width = 15)
    @ApiModelProperty(value = "质检单")
    private String inspectionId;
	/**状态*/
	@Excel(name = "状态", width = 15, dicCode = "bhg_status")
	@Dict(dicCode = "bhg_status")
    @ApiModelProperty(value = "状态")
    private String status;
	/**处理意见*/
	@Excel(name = "处理意见", width = 15, dicCode = "cl_type")
	@Dict(dicCode = "cl_type")
    @ApiModelProperty(value = "处理意见")
    private String handlingOpinions;
	/**扣款状态*/
	@Excel(name = "扣款状态", width = 15, dicCode = "kk_status")
	@Dict(dicCode = "kk_status")
    @ApiModelProperty(value = "扣款状态")
    private String deductionStatus;
	/**备注*/
	@Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
    private String remark;
    /**检验类型*/
    @Excel(name = "检验类型", width = 15, dicCode = "inspection_type")
    @Dict(dicCode = "inspection_type")
    @ApiModelProperty(value = "检验类型")
    private java.lang.String inspectionType;
	/**返工数量*/
	@Excel(name = "返工数量", width = 15)
    @ApiModelProperty(value = "返工数量")
    private BigDecimal reworkNum;
	/**返工地点*/
	@Excel(name = "返工地点", width = 15)
    @ApiModelProperty(value = "返工地点")
    private String reworkLocation;
	/**返工方式*/
	@Excel(name = "返工方式", width = 15)
    @ApiModelProperty(value = "返工方式")
    private String reworkType;
	/**扣款内容*/
	@Excel(name = "扣款内容", width = 15)
    @ApiModelProperty(value = "扣款内容")
    private String deductionContent;
	/**扣款金额*/
	@Excel(name = "扣款金额", width = 15)
    @ApiModelProperty(value = "扣款金额")
    private BigDecimal deductionAmount;
	/**处理人*/
	@Excel(name = "处理人", width = 15, dictTable = "sys_user", dicText = "realname", dicCode = "username")
    @Dict(dictTable = "sys_user", dicText = "realname", dicCode = "username")
    @ApiModelProperty(value = "处理人")
    private String processedBy;
	/**处理时间*/
	@Excel(name = "处理时间", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "处理时间")
    private Date processedTime;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
	/**所属部门*/
    @ApiModelProperty(value = "所属部门")
    private String sysOrgCode;
}
